<title>好友动态点赞 设置</title>
<div class="app-header t-v bg-bai dl2 bb b-hui"><span class="header-l t-v nowrap" onclick="x.mclose();"><i
        class="icon icon-pleft f9"></i>返回</span> <span class="header-c t-v t-c nowrap">好友动态点赞 设置</span> <span
        class="header-r t-v t-r nowrap" onclick=""><i class="icon  f10"></i></span></div>
<div class="app-content bg-bai">
    <div class="p4">
        <div class="mb3 lan bold">[24H自动] 为QQ空间好友发表的动态进行点赞</div>
        <hr/>
		<div class="pt4 pb4 bold">
            <label class="i-checks"><input type="radio" name="is" value="0"
                                                                                                                                                                           {if
                                                                                                 condition="$job.start eq 0"
                                                                                                 }
                                                                                                 checked=""
                                                                                                 {/if}
                                           ><i></i>关闭功能</label>
            <label class="i-checks ml4"><input type="radio" name="is" value="1"
                                                                                                                                                                           {if
                                                                                                 condition="$job.start eq 1"
                                                                                                 }
                                                                                                 checked=""
                                                                                                 {/if}
                                               ><i></i>开启功能</label>
        </div>
		<hr/>
        <div class="pt2 pb3">
            <div class="in-text">
                <dt class="bold pr4">
                    <p class="h5 t-v"><label class="i-checks"><input type="radio" name="iszt" value="1"{if
                                                                                                          condition="$job.server eq 1"
                                                                                                          }
                                                                                                          checked=""
                                                                                                          {/if}
                                                                     ><i></i>免费服务器</label></p>
                    <p class="h5 t-v"><label class="i-checks"><input type="radio" name="iszt" value="2"{if
                                                                                                          condition="$job.server eq 2"
                                                                                                          }
                                                                                                          checked=""
                                                                                                          {/if}
                                                                     ><i></i>VIP服务器</label></p>
                    <p class="h5 t-v"><label class="i-checks"><input type="radio" name="iszt" value="3"{if
                                                                                                          condition="$job.server eq 3"
                                                                                                          }
                                                                                                          checked=""
                                                                                                          {/if}
                                                                     ><i></i>急速服务器</label></p>
                <dt class="pr4">
                    <p class="h5 t-v f3 qing">[{:config('sys_server_sd')}秒执行一次]</p>
                    <p class="h5 t-v f3 hong">[{:config('sys_vip_server_sd')}秒执行一次]</p>
                    <p class="h5 t-v f3 hong">[{:config('sys_js_server_sd')}秒执行一次]</p>
                <dd>
                    <p class="h5 t-v f3 hui">免费使用</p>
                    <p class="h5 t-v f3 hui">秒赞会员可用</p>
                    <p class="h5 t-v f3 hui">包季会员以上可用</p>
            </div>
        </div>
        <hr/>
        <div class="pt3 pb3">
            <div class="in-text bold">
                <dt class="f4 pr4">不赞她/他</dt>
                <dd><label class="i-checks"><input type="radio" name="mode" value="0" onclick="loadNeedData(0);"
                                                                                                     {if
                                                                                                 condition="$job.mode eq 0"
                                                                                                 }
                                                                                                 checked=""
                                                                                                 {/if}
                                                   ><i></i>关闭</label> <label
                        class="i-checks ml4"><input type="radio" name="mode" value="2" onclick="loadNeedData(1);"{if
                                                                                                 condition="$job.mode eq 2"
                                                                                                 }
                                                                                                 checked=""
                                                                                                 {/if}
                                                    ><i></i>开启</label></dd>
            </div>
            <div class="pl2 ml12 mt1 f2 hui dl">开启后填写的QQ将不会点赞他的说说</div>
            <div id="need" style="display:none;">
            <div class="mt3"><font class="f4 bold">QQ列表</font><font class="ml4 f2 hui dl">（多个QQ号之间请使用小数点隔开）</font></div>
            <div class="mt2"><textarea type="text" class="form w b" name="qqlist" placeholder="输入QQ号码" rows="3"
                                       onkeyup="this.value=this.value.replace(/[^\d\.]/,'')"
                                       autocomplete="off">{$job.list}</textarea></div>
            </div>
        </div>
        <div class="pt1 pb3">
            <button class="btn btn-qing btn-md w" onclick="ajax_gnset_zan();">保 存 设 置</button>
        </div>
    </div>
</div>
<script>
    function ajax_gnset_zan() {
        var iszt = $('input[name="iszt"]:checked').val();
        var mode = $('input[name="mode"]:checked').val();
		var is = $('input[name="is"]:checked').val();
        x.ajax('{:url('mobile_ajax/gnset',['act'=>'zan'])}', 'qid={$job.qid}&iszt=' + iszt + '&mode=' + mode + '&is=' + is + '&qqlist=' + x.getval('textarea[name="qqlist"]', 1));
    }

    function loadNeedData(id) {
        if (id == 0) {
            $("#need").hide();
        }else{
            $("#need").show();
        }
    }

    if ('{$job.mode}' == 2) {
        $("#need").show();
    }

</script>
